package com.xuecheng.api.filesystem;

import com.xuecheng.framework.domain.filesystem.FileSystem;
import com.xuecheng.framework.domain.filesystem.response.UploadFileResult;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.multipart.MultipartFile;

@Api(value = "文件管理接口", description = "对文件进行增删改查")
public interface FileSystemControllerApi {
    @ApiOperation("上传接口")
    public UploadFileResult upload(MultipartFile multipartFile, String businesskey,String filetag ,String metadata);

    @ApiOperation("查询接口")
    @ApiImplicitParams({
            @ApiImplicitParam(name="page",value = "页码",required=true,paramType="path",dataType="int"),
            @ApiImplicitParam(name="size",value = "每页记录数",required=true,paramType="path",dataType="int")
    })
    public QueryResponseResult fandAll(int page, int size, FileSystem fileSystem);

    @ApiOperation("删除")
    public ResponseResult delete(String fileId);

}
